# decoding=utf-8
from os.path import join, dirname, abspath

# 项目的路径
BASE_PATH = abspath(dirname(__file__)).replace("Conf", '')

# log存储的路径
LOG_SAVE_PATH = join(BASE_PATH, "OutPuts", 'log')

# 图片资源路径
IMAGE_PATH = join(BASE_PATH, 'TestDatas', 'image')


TEST_PATH = join(BASE_PATH, "TestCases")

# 报告执行的文件 unittest
REPORT_PATH = join(BASE_PATH, 'OutPuts')

# 项目的配置文件 包含 mysql  log  username,password
PROJECT_CONF_SETTING = {
    'project': join(BASE_PATH, 'Conf', 'project.ini')
}

# yaml 文件存储的路径
COMMON_FILE = join(BASE_PATH, 'TestDatas')

# yaml的测试数据集
YAML_FILE_LIST = {
    'login_page': join(COMMON_FILE, 'login_page.yaml'),  # xxxx

}

# csv 的测试数据集
CSV_FILE_PATH = {
    # "login_info": join(COMMON_FILE, 'Conf', 'login.csv'),
}

# xlsx 的测试文件
XLSX_PATH = {
    "comm": join(COMMON_FILE, '接口测试模板.xlsx'),  # xxxx
}

# 这些字段在文件读取的时候不管的什么类型的文件都得转换成 int 类型的字段
CONVER_LIST = ["port", "minsize", 'maxsize', 'backupcount', 'maxbytes']

# 公共头部信息
PUBLIC_HEADERS = {

}
